package SpringCloudBase;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
@ServletComponentScan
@EnableCaching
@EnableCircuitBreaker
public class ConsumerFeginHytrixFactoryApplication
{
    public static void main( String[] args )
    {
        System.out.println( "正在加载Fegin-hytrix服务！!");
        SpringApplication.run(ConsumerFeginHytrixFactoryApplication.class);
    }
}
